package Year2021.month10.Day21.Day29Interface;

public class WorkTest {
    public static void main(String[] args) {
        Computer c = new Computer();
        c.setBrand("联想");
        c.setCpu(new IntelCpu("因特尔", "3.8GHz"));
        c.setMemory(new KingstonMemory(4, "金士顿"));
        c.setHardDisk(new SolidStateHardDisk(3000));
        c.show();
        Mouse m = new Mouse();
        m.setBrand("联想");
        m.start(c);
        m.stop(c);
        Keyboard k = new Keyboard();
        k.setBrand("青轴");
        k.start(c);
        m.stop(c);


    }
}
